define(["jQuery", "kendo"], function ($, kendo) {
    return {
    	creationMode:false,
		isGrid: 0,
		heightGrid : 0,
		widthGrid : 0,
		isDashed : 0,
		show : function(){ 
			$( "#open-file-template-dragable-menu" ).show();			
		},
		
        init: function (e) {
			console.log("init property ...");
			$("#open-file-template-dragable-menu").draggable();
			$("#open-file-template-dragable-menu").hide(); 
			  			
			$('.open-file-template-workspace').click(function() { 
				App.openWorkspaceTemplate();
			});
			
			$(".ok-open-file-template-button").click(function() {
				$( "#open-file-template-dragable-menu" ).hide(); 
				window.location.href = App.baseUrl+"home/draw?f_id="+$('#listFileWorkspaceTemplate option:selected').val();
			});
			
			$(".cancel-open-file-template-button").click(function() {
				var r=confirm(App.localize("%cancel_confirmation"));
				if (r==true)
				{
					$( "#open-file-template-dragable-menu" ).hide(); 
				}
				else
				{
					console.log("You pressed Cancel!");
				}
			});	

			 
		
		}
	}
});